import React from 'react';
import Loadable from 'react-loadable';


//通用的过场组件
const loadingComponent = () => {
  return (
    <div>来自一缕清风的提示: 正在加载...</div>
  )
}


export default (loader, loading = loadingComponent) => {
  return Loadable({
    loader,
    loading,
  })
}